package org.jeecg.modules.golf.question.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.golf.plan.client.MyPlanAnalysisDTO;
import org.jeecg.modules.golf.plan.client.MyPlanAnalysisQueryDTO;
import org.jeecg.modules.golf.question.client.TrainAnalysisDTO;
import org.jeecg.modules.golf.question.client.qto.QuestionQueryPageDTO;
import org.jeecg.modules.golf.question.entity.MyQuestionPlan;

import java.util.List;

/**
 * @Description: 我的问题解决方案
 * @Author: jeecg-boot
 * @Date:   2020-11-21
 * @Version: V1.0
 */
public interface MyQuestionPlanMapper extends BaseMapper<MyQuestionPlan> {

	 boolean deleteByMainId(@Param("mainId") Long mainId);

	 List<MyQuestionPlan> selectByMainId(@Param("mainId") Long mainId);


	/**
	 * 训练分析
	 * @param questionQueryPageDTO
	 * @return
	 */

	QuestionQueryPageDTO<TrainAnalysisDTO> trainAnalysis(QuestionQueryPageDTO<TrainAnalysisDTO> questionQueryPageDTO);

	/**
	 * 方案分析
 	 * @param myPlanAnalysisQueryDTO
	 * @return
	 */
	IPage<MyPlanAnalysisDTO> planAnalysis(MyPlanAnalysisQueryDTO myPlanAnalysisQueryDTO);
}
